<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="<?php echo C('INTERFACE_LANGUAGE') ?>">
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta http-equiv="X-UA-Compatible" content="chrome=1" />
	<meta name="robots" content="noindex, nofollow" />

	<title><?php echo ($siteName); ?> - 后台管理</title>

        <?php if(is_array($cssFiles)): foreach($cssFiles as $key=>$cf): ?><link rel="stylesheet" href="<?php echo ($cf); ?>" /><?php endforeach; endif; ?>
	<!--[if IE 7]><link rel="stylesheet" href="__ROOT__/Tpl/Backend/Default/Public/css/conditionals/ie7.css" /><![endif]-->
	<!--[if IE 8]><link rel="stylesheet" href="__ROOT__/Tpl/Backend/Default/Public/css/conditionals/ie8.css" /><![endif]-->
</head>
<body id="login">
<!--[if lte IE 6]>
	<style type="text/css" media="screen">
		#debugnotify, #loginBox {
			display: none
		}
		#browserSupport {
			padding: 20px;
			border: 1px solid #DDD;
			width: 400px;
			margin: 40px auto
		}
		#browserSupport h2 {
			padding: 0 0 12px;
		}
		body {
			background: #FFF !important;
		}
	</style>
	<div id="browserSupport" class="content">
		<h2>浏览器不支持</h2>
		<p>你正在使用的浏览器有些古老，它无法正常运行BoCMS。建议您使用以下任一款浏览器打开：</p><ul><li><a href="http://www.firefox.com/">Firefox</a>：一款非常优秀的浏览器，带有许多大量免费扩展插件。</li><li><a href="http://www.apple.com/safari">Safari</a>：最快最优越的浏览器之一。尤其适合Mac用户。</li><li><a href="http://www.google.com/chrome">Chrome</a>：谷歌浏览器 - 后起之秀。</li></li><a href="http://www.microsoft.com/windows/products/winfamily/ie/default.mspx">Internet Explorer*</a>：请升级到最新版本的IE。</li></ul>
	</div>
<![endif]-->
<table id="loginHolder">
    <tr>
        <td>
    <?php if($lgoinError): ?><div id="loginError">
            <div class="errorMessage singleMessage">
                <p><?php echo ($errInvalidEmailPasswordCombination); ?></p>
            </div>
        </div><?php endif; ?>

    <?php if($lgoinNumError): ?><div id="loginError">
            <div class="errorMessage singleMessage">
                <p><?php echo ($errTooManyLoginAttempts); ?></p>
            </div>
        </div><?php endif; ?>

    <div id="loginBox" {option:hasError}class="hasError"{/option:hasError}>
         <div id="loginBoxTop">
            <h2><?php echo ($siteName); ?></h2>
        </div>

        <form accept-charset="UTF-8" action="/backend/zh/authentication" method="post" id="authenticationIndex" class="BocmsForms submitWithLink">
            <input type="hidden" value="authenticationIndex" id="formAuthenticationIndex" name="form">
            <input type="hidden" name="form_token" id="formTokenAuthenticationIndex" value="6f9694054e5c364d5a3d8b7f407fea90">
            <div class="horizontal">
                <div id="loginFields">
                    <p>
                        <label for="backendEmail">帐号：</label>
                        <input value="" id="backendEmail" name="backend_email" maxlength="255" type="text" class="inputText">
                    </p>
                    <p>
                        <label for="backendPassword">密码：</label>
                        <input type="password" value="" id="backendPassword" name="backend_password" class="inputText inputPassword">
                    </p>
                </div>
                <p class="spacing">
                    <input name="login" type="submit" value="登录" class="inputButton button mainButton" style="position: absolute; top: -9000px; left: -9000px; " tabindex="-1">
                    <a class="submitButton button inputButton button mainButton" href="#undefined"><span>登录</span></a>
                </p>
            </div>
        </form>

        <ul id="loginNav">
            <li><a href="#" id="forgotPasswordLink" class="toggleBalloon" data-message-id="forgotPasswordHolder">忘记密码？</a></li>
        </ul>
    </div>

    <div id="forgotPasswordHolder" class="balloon balloonNoMessage" style="display: none;">
        <div id="forgotPasswordBox">

            <a class="button linkButton icon iconClose iconOnly toggleBalloon" href="#" data-message-id="forgotPasswordHolder"><span>X</span></a>

            <div class="balloonTop">&nbsp;</div>

            <p>请输入你的电子邮箱地址，之后你将收到一封关于获取新密码的指引邮件。</p>
            <form accept-charset="UTF-8" action="/backend/zh/authentication" method="post" id="forgotPassword" class="forkForms submitWithLink">
                <input type="hidden" value="forgotPassword" id="formForgotPassword" name="form"><input type="hidden" name="form_token" id="formTokenForgotPassword" value="6f9694054e5c364d5a3d8b7f407fea90">
                <div class="oneLiner">
                    <p><label for="backendEmailForgot">E-mail</label></p>
                    <p><input value="" id="backendEmailForgot" name="backend_email_forgot" maxlength="255" type="text" class="inputText"></p>
                    <p>
                        <input id="send" type="submit" name="send" value="发送" style="position: absolute; top: -9000px; left: -9000px; " tabindex="-1"><a class="submitButton button undefined" href="#send"><span>发送</span></a>
                    </p>
                </div>


            </form>
        </div>
    </div>

</td>
</tr>
</table>
<div id="ajaxSpinner" style="position: fixed; top: 10px; right: 10px; display: none;">
    <img src="__ROOT__/Tpl/Backend/Default/Public/images/spinner.gif" width="16" height="16" alt="loading" />
</div>

<?php if(is_array($jsFiles)): foreach($jsFiles as $key=>$jf): ?><script src="<?php echo ($jf); ?>"></script><?php endforeach; endif; ?>
<script>
    //<![CDATA[
    {option:formError}jsBackend.messages.add('error', "<?php echo (addslashes($errFormError)); ?>");{/option:formError}

    {option:usingRevision}jsBackend.messages.add('notice', "<?php echo (addslashes($msgUsingARevision)); ?>");{/option:usingRevision}
    {option:usingDraft}jsBackend.messages.add('notice', "<?php echo (addslashes($msgUsingADraft)); ?>");{/option:usingDraft}

    {option:report}jsBackend.messages.add('success', "<?php echo (addslashes($reportMessage)); ?>");{/option:report}

    {option:errorMessage}jsBackend.messages.add('error', "<?php echo (addslashes($errorMessage)); ?>");{/option:errorMessage}
    //]]>
</script>
</body>
</html>